﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MathTest.Entity
{
    /// <summary>
    /// 存储每次的考试结果
    /// </summary>
    [Serializable]
    internal class TestResults
    {
        /// <summary>
        /// 测试结果ID
        /// </summary>
        internal string ID { get; set; }
        /// <summary>
        /// 学生名字
        /// </summary>
        internal string studentsName { get; set; }
        /// <summary>
        /// 测试时间
        /// </summary>
        internal DateTime testDateTime { get; set; }
        /// <summary>
        /// 试题测试详情列表
        /// </summary>
        internal IList<TestResultsItem> TestResultsItemList { get; set; }
        /// <summary>
        /// 总的答题数量
        /// </summary>
        internal int TestSumCount { get; set; }
        /// <summary>
        /// 答对的测试题数量
        /// </summary>
        internal int testCorrectCount { get; set; }
        /// <summary>
        /// 正确比例
        /// </summary>
        internal string testCorrectRatio { get; set; }
    }
    /// <summary>
    /// 习题记录
    /// </summary>
    [Serializable]
    internal class TestResultsItem
    {
        /// <summary>
        ///  试题题目
        /// </summary>
        internal string testQuestions { get; set; }
        /// <summary>
        /// 试题结果
        /// </summary>
        internal string testResult { get; set; }
    }
}
